function collect_same_elements(collection_a, object_b) {
  let arr=object_b.value;
  var ab=[];
  for(var ai=0;ai<collection_a.length;ai++){
    for(var bi=0;bi<arr.length;bi++){
      if(collection_a[ai]==arr[bi]){
       ab.push(collection_a[ai]);
      }
    }
  }
return ab;
console.log(ab); //在这里写入代码
}

module.exports = collect_same_elements;
